package com.atom.common.delegate;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Title: HistoricDelegate
 * Description: 代理历史记录
 * @author WEWE
 * @date 2017年12月5日 上午11:41:16
 * @version 1.0
 */
@Entity
@Table(name="atm_common_delegate_hi") 
public class HistoricDelegate implements Serializable {

  /** serialVersionUID*/
  private static final long serialVersionUID = 1L;

  /** 主键*/
  @Id
  @Column(name="ID")
  private String id;
  
  /** 被代理人*/
  @Column(name="OWNER")
  private String owner;
  
  /** 被代理人*/
  @Column(name="OWNER_NAME")
  private String ownerName;
  
  /** 被代理人*/
  @Column(name="OWNER_ORG")
  private String ownerOrg;
  
  /** 被代理人*/
  @Column(name="OWNER_ORG_NAME")
  private String ownerOrgName;

  /** 代理人*/
  @Column(name="ASSIGNEE")
  private String assignee;

  /** 流程定义key*/
  @Column(name="PROC_DEF_KEY")
  private String processDefinitionKey;

  /** 代理开始时间*/
  @Column(name="DG_START")
  private Date startTime;

  /** 代理结束时间*/
  @Column(name="DG_END")
  private Date endTime;

  /** 代理类型 1：外出代理 2：协同代理*/
  @Column(name="DG_TYPE")
  private int delegateType;
  
  /** 是否被取消 1：是 0：否*/
  @Column(name="IS_CANCEL")
  private int isCancel;

  public HistoricDelegate() {
    super();
  }

  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public String getOwner() {
    return owner;
  }

  public void setOwner(String owner) {
    this.owner = owner;
  }

  public String getOwnerName() {
    return ownerName;
  }

  public void setOwnerName(String ownerName) {
    this.ownerName = ownerName;
  }

  public String getOwnerOrg() {
    return ownerOrg;
  }

  public void setOwnerOrg(String ownerOrg) {
    this.ownerOrg = ownerOrg;
  }

  public String getOwnerOrgName() {
    return ownerOrgName;
  }

  public void setOwnerOrgName(String ownerOrgName) {
    this.ownerOrgName = ownerOrgName;
  }

  public String getAssignee() {
    return assignee;
  }

  public void setAssignee(String assignee) {
    this.assignee = assignee;
  }

  public String getProcessDefinitionKey() {
    return processDefinitionKey;
  }

  public void setProcessDefinitionKey(String processDefinitionKey) {
    this.processDefinitionKey = processDefinitionKey;
  }

  public Date getStartTime() {
    return startTime;
  }

  public void setStartTime(Date startTime) {
    this.startTime = startTime;
  }

  public Date getEndTime() {
    return endTime;
  }

  public void setEndTime(Date endTime) {
    this.endTime = endTime;
  }

  public int getDelegateType() {
    return delegateType;
  }

  public void setDelegateType(int delegateType) {
    this.delegateType = delegateType;
  }

  public int getIsCancel() {
    return isCancel;
  }

  public void setIsCancel(int isCancel) {
    this.isCancel = isCancel;
  }

}
